int
main(){
struct student John, *pJohn,
*pJohn1, *new();
//
allocate memory for pJohn using new
pJohn = new();
//
allocate memory for pJohn1 using new1
new1(&pJohn1);
//
now all variables have memory allocated
//and
component access is well defined.
John.StudentID = 812366;
pJohn->StudentID =
John.StudentID+1;
pJohn1->StudentID =
877744;
….
};